package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 *  7、收藏农家
 */
@Entity(name = "xw_collect_farm")
public class XwCollectFarm {

    /**
     * 收藏农家id
     */
    @Column(name = "collect_farm_id")
    private Integer collectFarmId;

    /**
     * 农家加密id
     */
    @Column(name = "farm_encryptId")
    private String farmEncryptid;

    /**
     * 用户加密id
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * 农家类型（农家乐，渔家乐……）只能选择其一
     */
    @Column(name = "collect_farm_type")
    private String collectFarmType;

    /**
     * 农家乐类型加密id
     */
    @Column(name = "farmType_encryptId")
    private String farmtypeEncryptid;

    /**
     * 企业名称
     */
    @Column(name = "collect_farm_companyName")
    private String collectFarmCompanyname;

    /**
     * 游客用户名
     */
    @Column(name = "collect_user_name")
    private String collectUserName;

    /**
     * 收藏状态（“”：全部，1：收藏，0：取消收藏）
     */
    @Column(name = "collect_state")
    private Integer collectState;

    /**
     * 收藏时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "collect_farm_time")
    private Date collectFarmTime;

    public XwCollectFarm(){

    }

    public XwCollectFarm(String farmEncryptid, String userEncryptid, String collectFarmType, String farmtypeEncryptid, String collectFarmCompanyname, String collectUserName, Integer collectState, Date collectFarmTime) {
        this.farmEncryptid = farmEncryptid;
        this.userEncryptid = userEncryptid;
        this.collectFarmType = collectFarmType;
        this.farmtypeEncryptid = farmtypeEncryptid;
        this.collectFarmCompanyname = collectFarmCompanyname;
        this.collectUserName = collectUserName;
        this.collectState = collectState;
        this.collectFarmTime = collectFarmTime;
    }

    /**
     * @return collect_farm_id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getCollectFarmId() {
        return collectFarmId;
    }

    /**
     * @param collectFarmId
     */
    public void setCollectFarmId(Integer collectFarmId) {
        this.collectFarmId = collectFarmId;
    }

    /**
     * 获取农家加密id
     *
     * @return farm_encryptId - 农家加密id
     */
    public String getFarmEncryptid() {
        return farmEncryptid;
    }

    /**
     * 设置农家加密id
     *
     * @param farmEncryptid 农家加密id
     */
    public void setFarmEncryptid(String farmEncryptid) {
        this.farmEncryptid = farmEncryptid;
    }

    /**
     * 获取用户加密id
     *
     * @return user_encryptId - 用户加密id
     */
    public String getUserEncryptid() {
        return userEncryptid;
    }

    /**
     * 设置用户加密id
     *
     * @param userEncryptid 用户加密id
     */
    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    /**
     * 获取农家类型（农家乐，渔家乐……）只能选择其一
     *
     * @return collect_farm_type - 农家类型（农家乐，渔家乐……）只能选择其一
     */
    public String getCollectFarmType() {
        return collectFarmType;
    }

    /**
     * 设置农家类型（农家乐，渔家乐……）只能选择其一
     *
     * @param collectFarmType 农家类型（农家乐，渔家乐……）只能选择其一
     */
    public void setCollectFarmType(String collectFarmType) {
        this.collectFarmType = collectFarmType;
    }

    /**
     * 获取农家乐类型加密id
     *
     * @return farmType_encryptId - 农家乐类型加密id
     */
    public String getFarmtypeEncryptid() {
        return farmtypeEncryptid;
    }

    /**
     * 设置农家乐类型加密id
     *
     * @param farmtypeEncryptid 农家乐类型加密id
     */
    public void setFarmtypeEncryptid(String farmtypeEncryptid) {
        this.farmtypeEncryptid = farmtypeEncryptid;
    }

    /**
     * 获取企业名称
     *
     * @return collect_farm_companyName - 企业名称
     */
    public String getCollectFarmCompanyname() {
        return collectFarmCompanyname;
    }

    /**
     * 设置企业名称
     *
     * @param collectFarmCompanyname 企业名称
     */
    public void setCollectFarmCompanyname(String collectFarmCompanyname) {
        this.collectFarmCompanyname = collectFarmCompanyname;
    }

    /**
     * 获取游客用户名
     *
     * @return collect_user_name - 游客用户名
     */
    public String getCollectUserName() {
        return collectUserName;
    }

    /**
     * 设置游客用户名
     *
     * @param collectUserName 游客用户名
     */
    public void setCollectUserName(String collectUserName) {
        this.collectUserName = collectUserName;
    }

    /**
     * 获取收藏状态（“”：全部，1：收藏，0：取消收藏）
     *
     * @return collect_state - 收藏状态（“”：全部，1：收藏，0：取消收藏）
     */
    public Integer getCollectState() {
        return collectState;
    }

    /**
     * 设置收藏状态（“”：全部，1：收藏，0：取消收藏）
     *
     * @param collectState 收藏状态（“”：全部，1：收藏，0：取消收藏）
     */
    public void setCollectState(Integer collectState) {
        this.collectState = collectState;
    }

    /**
     * 获取收藏时间
     *
     * @return collect_farm_time - 收藏时间
     */
    public Date getCollectFarmTime() {
        return collectFarmTime;
    }

    /**
     * 设置收藏时间
     *
     * @param collectFarmTime 收藏时间
     */
    public void setCollectFarmTime(Date collectFarmTime) {
        this.collectFarmTime = collectFarmTime;
    }

    @Override
    public String toString() {
        return "XwCollectFarm{" +
                "collectFarmId=" + collectFarmId +
                ", farmEncryptid='" + farmEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", collectFarmType='" + collectFarmType + '\'' +
                ", farmtypeEncryptid='" + farmtypeEncryptid + '\'' +
                ", collectFarmCompanyname='" + collectFarmCompanyname + '\'' +
                ", collectUserName='" + collectUserName + '\'' +
                ", collectState=" + collectState +
                ", collectFarmTime=" + collectFarmTime +
                '}';
    }
}